﻿using System;
using Duality;
using Duality.Resources;
using OpenTK.Input;

namespace PhoenixCrab.Interface
{
    /// <summary>
    /// The Splash Screen Transition on Mouse Click
    /// </summary>
    [Serializable]
    public class SplashScreenTransition : Component, ICmpUpdatable
    {
        
        public void OnUpdate()
        {
            if (DualityApp.Mouse.ButtonHit(MouseButton.Left) || DualityApp.Keyboard.KeyHit(Key.Space)
                || DualityApp.Keyboard.KeyHit(Key.Enter))
            {
                Scene.Current = GameRes.Data.Scenes.Title_Screen_Scene.Res;
                
            }
        }

 
    }
}